package cn.qiyu5522.tk_ems.service;

import cn.qiyu5522.tk_ems.entity.Company;
import cn.qiyu5522.tk_ems.entity.dto.CompanyDTO;
import cn.qiyu5522.tk_ems.entity.dto.QueryParamDTO;
import cn.qiyu5522.tk_ems.result.R;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-19
 */
public interface CompanyService extends IService<Company> {

    R queryCompanyByPageCondition(QueryParamDTO<CompanyDTO> queryParamDTO);

    R saveMore(List<CompanyDTO> companyDTOS);

    R removeMore(List<Long> ids);

    List<Company> queryForIdAndNameAndCode();

    R queryByCode(Long code);

    R queryForNameAndIdAndCode();

    R queryCompanyInfoById(Long id);
}
